import request from '@/utils/request.js';

/**
 * 订单支付（微信weixin）
 */
export const MiniPayOrder = (data) => {
	return request.post(`Mini/ApiConnect/MiniPayOrder`, data)
}

/**
 * 订单列表
 */
export const UserOrderList = (data) => {
	return request.post(`Mini/ApiConnect/UserOrderList`, data)
}

/**
 * 取消订单
 */
export const AllOrderOut = (data) => {
	return request.post(`Mini/ApiConnect/AllOrderOut`, data)
}

/**
 * 退换货
 */
export const HandleOrderRefund = (data) => {
	return request.post(`Mini/ApiConnect/HandleOrderRefund`, data)
}

/**
 * 上传退换货图片
 */
export const UploadRefundPic = (data) => {
	return request.post(`Mini/ApiConnect/UploadRefundPic`, data)
}

/**
 * 退换货订单列表
 */
export const OrderRetundList = (data) => {
	return request.post(`Mini/ApiConnect/OrderRetundList`, data)
}

/**
 * 退换货订单详情
 */
export const refundOrderInfo = (data) => {
	return request.post(`Mini/ApiConnect/refundOrderInfo`, data)
}

/**
 * 获取商品退换货前置信息
 */
export const OrderGoodsList = (data) => {
	return request.post(`Mini/ApiConnect/OrderGoodsList`, data)
}

/**
 * 退换货物流寄回
 */
export const backExpress = (data) => {
	return request.post(`Mini/ApiConnect/backExpress`, data)
}

/**
 * 确认换货完成
 */
export const confirmChange = (data) => {
	return request.post(`Mini/ApiConnect/confirmChange`, data)
}

/**
 * 确认收货
 */
export const UserOrderAffirm = (data) => {
	return request.post(`Mini/ApiConnect/UserOrderAffirm`, data)
}

/**
 * 订单详情
 */
export const UserOrderInfo = (data) => {
	return request.post(`Mini/ApiConnect/UserOrderInfo`, data)
}

/**
 * 评价标签列表
 */
export const getCommentTagsList = (data) => {
	return request.post(`Mini/ApiConnect/getCommentTagsList`, data)
}

/**
 * 订单评价
 */
export const UserCommentHandle = (data) => {
	return request.post(`Mini/ApiConnect/UserCommentHandle`, data)
}

/**
 * 获取订单数量
 */
export const UserOrderListTip = (data) => {
	return request.post(`Mini/ApiConnect/UserOrderListTip`, data)
}